package com.telrob.tool;

import android.content.Context;
import android.webkit.JavascriptInterface;
import android.webkit.ValueCallback;

public class JsHttp {

    private Context context;
    public JsHttp(Context c){
        context=c;
    }
    @JavascriptInterface
    public String post(String url,String json){
        return OKHttpUtils.post(url,json);
    }

    @JavascriptInterface
    public String getKey(){
        return OKHttpUtils.apiKey;
    }

    @JavascriptInterface
    public String get(String url){
        return OKHttpUtils.get(url);
    }

}
